#include <iostream>
using namespace std;

/*
    【题目220】定义一个Rectangle类，有长（itsWidth）、宽（itsLength）属性，重载其构造函数Rectangle(和Rectangle(int width,intlength)。
*/

class Rectangle
{
public:
    Rectangle()
    {
        itsWidth = 0;
        itsLength = 0;
    }
    Rectangle(int width, int length)
    {
        itsWidth = width;
        itsLength = length;
    }

    int getWidth() const
    {
        return itsWidth;
    }

    int getLength() const
    {
        return itsLength;
    }

private:
    int itsWidth;
    int itsLength;
};